package com.moss.cloud.common.file.utils;

import com.moss.cloud.common.file.model.UploadRes;

import java.time.LocalDateTime;

public class UploadResUtil {

    public static UploadRes createUploadRes(String path,String fileName,String type,String username,Long size){
        UploadRes uploadRes = new UploadRes();
        uploadRes.setCreateTime(LocalDateTime.now());
        uploadRes.setFileId(fileName);
        uploadRes.setFilePath(path);
        uploadRes.setType(type);
        uploadRes.setUsername(username);
        uploadRes.setSize(size);
        return uploadRes;
    }
}
